﻿<%@ Control Language="c#" AutoEventWireup="false" Inherits="Web.Control.WWW.Partner.Search" %>
<asp:Literal ID="litCount" Text="15" runat="server" Visible="false"/>
<div class="common">
	<div class="submenunew">
		<div class="submenu_l">
				<div class="unsub">
					<div class="unsubsel"><a href="/partner/"><span><strong><%=GetText("C0068")%></strong></span></a></div>
					<div><img src="/Images/submenu_arrow.gif" /></div>
				</div>
				<div class="unsub">
					<div class="unsubsel"><a href="/contacts/invite.htm"><span><%=GetText("CT016")%></span></a></div>
					<div><img src="/Images/submenu_arrownone.gif" /></div>
				</div>
				<div class="cleartm"></div>
		</div>
		<div class="submenu_r"><input id="textSear2" type="text" class="common_search" value="<%=Name_F %>" /><a href="#" id="bttSear2" class="buttonimg" onclick="SearchDocs()" ><img src="/Images/icon_search19.gif" border="0" class="img" /></a></div>
		<div class="cleartm"></div>
	</div>
	<div id="new_body">
		<div id="body_900">
			<div id="body_left"></div>
			<div id="body_main">
					<div class="margin10" align="center">
					<script type="text/javascript">
					  GA_googleFillSlot("all_pages_top728x90");
					</script>
					</div>
				<div class="submenuN">
					<div class="submenuN_position">
						<div class="submenuN_title">
							<div class="submenuN_Btitle">
								<h1><%=GetText("CT090")%></h1>
							</div>
							<div class="search_fliter" id="Content828ID">
											<table border="0" cellspacing="0" cellpadding="5">
												<tr>
													<td style="padding-right:5px"><strong><%=GetText("CT001")%></strong><br /><select id="selSpeakL" class="common130"> <option value=""><%=GetText("C0027")%></option> <%=GetLanguageSelect(BL)%> </select></td>
													<td style="padding-right:5px"><strong><%=GetText("CT002")%></strong><br /><select id="selLearnL" class="common130"> <option value=""><%=GetText("C0027")%></option> <%=GetLanguageSelect(LL)%> </select></td>
													<td style="padding-right:5px"><strong><%=GetText("C0003")%></strong><br /><select id="selCountry" class="common100"> <option value=""><%=GetText("C0029")%></option> <%=GetCountrySelect(Nationality)%> </select></td>
													<td style="padding-right:5px"><strong><%=GetText("C0010")%></strong><br /><select id="selAge" class="common100">
															<option value="0-200"><%=GetText("C0024")%></option>
															<option value="0-18"><%=GetText("CT003")%></option>
															<option value="18-25">18-25</option>
<															<option value="26-35">26-35</option>
															<option value="36-200">35+</option>
														</select>
													</td>
													<td><strong><%=GetText("C0011")%></strong><br /><select id="selGender" class="common100">
															<option value=""><%=GetText("C0024")%></option>
															<option value="1"><%=GetText("C0012")%></option>
															<option value="0"><%=GetText("C0013")%></option>
														</select>
													</td>
												</tr>
												<tr>
													<td colspan="5"><div class="floatl"><a href="#" id="bttSear" class="specbtn" onclick="SearBrowseDocs()"><span>&nbsp;&nbsp;&nbsp;<%=GetText("C0068")%>&nbsp;&nbsp;&nbsp;</span></a></div><div class="floatl">&nbsp;&nbsp;&nbsp;&nbsp;<input id="IsNativeBLID" type="checkbox" <%=(IsNativeBL=="1"?"checked='checked'":"")%> /> <%=GetText("CT091")%>&nbsp;&nbsp;<input id="iconCheck" type="checkbox" <%=(IsAvatar=="1"?"checked='checked'":"")%>/> <%=GetText("CT004")%></div><div class="clear"></div></td>
												</tr>
											</table>
							</div>
							<div class="submenuN_button"><a href="/contacts/invite.htm" class="specgbtn btnspec"><span><%=GetText("CT016")%></span></a></div>
						</div>
					</div>
				</div>
				<div class="Center9001n">
					<div class="center9001right">
						<div class="Center9001Content">
						<div class="friends_area">
							<%if(Name_F!="") {%>
							<p class="pink18"><%=GetText("Search by &quot;{0}&quot;",new string[]{Name_F})%></p>
							<%}%>
						    <div class="content628" style="margin-bottom:20px">
								<div id="SearCount"><%=(RecordCount == 0 ? GetText("CT055") : (RecordCount > 499 ? GetText("CT054") : string.Format(GetText("CT010"), RecordCount)))%></div>
					        </div>
							<div id="memberList" class="content628 ">							    
							    <asp:Repeater ID="rptUserList" runat="server">
                                    <ItemTemplate>                                    
									<table width="625" border="0" cellspacing="0" cellpadding="0" style="margin-bottom:30px;overflow:hidden">
										<tr>
											<td width="120" valign="top"><div class="Pic90"><a class="Photo_90" href="/<%#Eval("MemberNo") %><%#Eval("MemberType").ToString()=="1"?"T":""%>.htm"><%#Eval("Avatar").ToString() == "" ? "<img src=\"/Images/No_pic.gif\" alt='' />" : Eval("Avatar", "<img src=\"{0}\" />").ToString()%></a></div></td>
											<td width="200" valign="top"><div class="text14"><img src='<%#(bool)Eval("Online") == true?"/Images/Online.gif":"/Images/Offline.gif" %>' title='<%#(bool)Eval("Online") == true?GetText("C0038"):GetText("C0039") %>' align="absmiddle" /> <a href="/<%#Eval("MemberNo") %><%#Eval("MemberType").ToString()=="1"?"T":""%>.htm"><%#Eval("NickName") %></a></div>
											<p><%#(bool)Eval("IsShowBod") ? (Eval("Age").ToString() != "" ? (Eval("Age").ToString() + ",") : "") : ""%> <%#Eval("Gender").ToString()!=""?GetGenderText(Eval("Gender").ToString())+", ":""%><%=C0003%> <%#Eval("Hometown").ToString() == "" ? "" : Eval("Hometown").ToString()+", "%><%#GetCountryText(Eval("Nationality").ToString())%></p>
											<p class="grey12"><%#C0009%> <%#Eval("City").ToString() == "" ? "" : Eval("City").ToString()+", "%><%#GetCountryText(Eval("Country").ToString())%></p>
											<%#Eval("MemberType").ToString()=="1"?"<span class='status_TEdisplay'>"+GetText("C0116")+"</span>":""%>
											</td>
											<td valign="top">
												<%#C0005%>: <strong><%#BLF.StaticData.GetLanguageText(Eval("MotherTongue").ToString())%><img src="/Images/Level5.gif" /><%#(Eval("MotherTongue2").ToString().Trim()=="")?"":", "+(BLF.StaticData.GetLanguageText(Eval("MotherTongue2").ToString())+Eval("motherTongue2Level","<img src=\"/Images/Level{0}.gif\" />"))%><%#(Eval("MotherTongue3").ToString().Trim() == "") ? "" : ", "+(BLF.StaticData.GetLanguageText(Eval("MotherTongue3").ToString()) + Eval("motherTongue3Level", "<img src=\"/Images/Level{0}.gif\" />"))%><%#(Eval("MotherTongue4").ToString().Trim() == "") ? "" : ", "+(BLF.StaticData.GetLanguageText(Eval("MotherTongue4").ToString()) + Eval("motherTongue4Level", "<img src=\"/Images/Level{0}.gif\" />"))%></strong>
                                                <br /><%#(Eval("TargetLanguage").ToString().Trim() == "" && Eval("TargetLanguage2").ToString().Trim() == "" && Eval("TargetLanguage3").ToString().Trim() == "" && Eval("TargetLanguage4").ToString().Trim() == "") ? "" : C0007+":"%> 
                                                <strong><%#(Eval("TargetLanguage").ToString().Trim()== "") ? "" : (BLF.StaticData.GetLanguageText(Eval("TargetLanguage").ToString()) + Eval("TargetLanguageLevel", "<img src=\"/Images/Level{0}.gif\" />"))%><%#(Eval("TargetLanguage2").ToString().Trim()== "") ? "" : ", "+(BLF.StaticData.GetLanguageText(Eval("TargetLanguage2").ToString()) + Eval("TargetLanguage2Level", "<img src=\"/Images/Level{0}.gif\" />"))%><%#(Eval("TargetLanguage3").ToString().Trim()== "") ? "" : ", "+(BLF.StaticData.GetLanguageText(Eval("TargetLanguage3").ToString()) + Eval("TargetLanguage3Level", "<img src=\"/Images/Level{0}.gif\" />"))%><%#(Eval("TargetLanguage4").ToString().Trim()== "") ? "" : ", "+(BLF.StaticData.GetLanguageText(Eval("TargetLanguage4").ToString()) + Eval("TargetLanguage4Level", "<img src=\"/Images/Level{0}.gif\" />"))%></strong>                                            
                                                <br /><div><%#(Eval("Avatar_title").ToString() == "" ? "" : "<div class='thoughtbox'><div><div><div><div>" + HttpUtility.HtmlEncode(Eval("Avatar_title").ToString()) + "</div></div></div></div></div>")%></div>
                                                </td>
											</tr>
										</table>
							        </ItemTemplate>
                                </asp:Repeater>  
                                <%if (rptUserList.Items.Count == 0){ %>没有找到你要的数据<%} %>
							</div>
							<div class="clear"></div>							
							<div id="divPage" class="margin20T">							
								<%=string.IsNullOrEmpty(Name_F)?CreatePageNav(RecordCount, psize, PageIndex, "",
									string.Format("<span class='page_none grey10'><a href='{0}/partner/$I$-{1}-{2}-{3}-{4}-{5}-{6}-{7}-{8}.htm'>{9}</a></span>&nbsp;", WWWHost,LL,BL,Nationality,MaxAge,MinAge,Gender,IsAvatar,IsNativeBL,HttpUtility.UrlEncode(GetText("..."))),
									"",
									string.Format("<span class='page_none grey10'><a href='{0}/partner/$I$-{1}-{2}-{3}-{4}-{5}-{6}-{7}-{8}.htm'>{9}</a></span>&nbsp;", WWWHost,LL,BL,Nationality,MaxAge,MinAge,Gender,IsAvatar,IsNativeBL,HttpUtility.UrlEncode(GetText("..."))),
									string.Format("<span class='page_select'>{0}</span>&nbsp;", PageIndex),
									string.Format("<span class='page_none grey10'><a href='{0}/partner/$I$-{1}-{2}-{3}-{4}-{5}-{6}-{7}-{8}.htm'>$I$</a></span>&nbsp;",WWWHost,LL,BL,Nationality,MaxAge,MinAge,Gender,IsAvatar,IsNativeBL)
                                    ):
                                    CreatePageNav(RecordCount, psize, PageIndex, "",
									string.Format("<span class='page_none grey10'><a href='{0}/partner/search.htm?name={1}&p=$I$.htm'>{2}</a></span>&nbsp;", WWWHost,Name_F,HttpUtility.UrlEncode(GetText("..."))),
									"",
									string.Format("<span class='page_none grey10'><a href='{0}/partner/search.htm?name={1}&p=$I$.htm'>{2}</a></span>&nbsp;", WWWHost,Name_F,HttpUtility.UrlEncode(GetText("..."))),
									string.Format("<span class='page_select'>{0}</span>&nbsp;", PageIndex),
									string.Format("<span class='page_none grey10'><a href='{0}/partner/search.htm?name={1}&p=$I$.htm'>$I$</a></span>&nbsp;",WWWHost,Name_F)
                                    )
								%>
							</div>
						</div>
						</div>
					</div>
					<div class="center9001left">
						<div id="ad_site" class="margin20T">
						<script type="text/javascript">
						  GA_googleFillSlot("all_pages_right160x600");
						</script>
						</div>
					</div>
					<div class="clear"></div>
					<div class="margin10" align="center">
					<script type="text/javascript">
					  GA_googleFillSlot("all_pages_bottom728x90");
					</script>
					</div>
					<div class="friends_area">
						<div class="copyright margin5">Most popular languages for language exchange: 
							<asp:Repeater ID="rptPopular" runat="server">
								<ItemTemplate>										
									<a href='<%=WWWHost %>/partner/speak-<%#Eval("LanguageValue")%>.htm'><%#GetText("Speak {0}", new string[] { Eval("LanguageText").ToString() })%></a>&nbsp;&nbsp;
								</ItemTemplate>
							</asp:Repeater>
							<a href="/partner/languages.htm">All languages for language exchange</a>
						</div>
					</div>
				</div>
				</div>
			</div>
			<div id="body_right"></div>
			<div class="clear"></div>
		</div>
		<div id="body_900F"></div>
	</div>
</div>
<!---->
<script type="text/javascript">
$get("selAge").value="<%=MinAge %>-<%=MaxAge %>";
$get("selGender").value="<%=Gender %>";
</script>
